package com.yb.guigu.pick.mqbackup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-06-12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("mq_message")
@ApiModel(value = "MqMessage对象", description = "")
public class MqMessage {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("rabbitmq消息的id")
    @TableField("msg_id")
    private String msgId;

    @ApiModelProperty("消息内容")
    @TableField("message")
    private String message;

    @ApiModelProperty("replyCode")
    @TableField("reply_code")
    private Integer replyCode;

    @ApiModelProperty("replytext")
    @TableField("reply_text")
    private String replyText;

    @ApiModelProperty("exchange")
    @TableField("exchange")
    private String exchange;

    @ApiModelProperty("routing_key")
    @TableField("routing_key")
    private String routingKey;

    @ApiModelProperty("成功或失败")
    @TableField("ack")
    private String ack;

    @ApiModelProperty("exception")
    @TableField("exception")
    private String exception;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
